package datasource
Import Path
github.com/K-Phoen/grabana/variable/datasource (on go.dev)
Dependency Relation
imports one package, and imported by one package
Involved Source Files
datasource.go
Package-Level Type Names (total 2)
Datasource represents a "datasource" templated variable.
Builder sdk.TemplateVar
func New(name string, options ...Option) *Datasource
Option represents an option that can be used to configure a query.
func Hide() Option
func HideLabel() Option
func IncludeAll() Option
func Label(label string) Option
func Multiple() Option
func Regex(regex string) Option
func Type(datasourceType string) Option
func New(name string, options ...Option) *Datasource
func github.com/K-Phoen/grabana/dashboard.VariableAsDatasource(name string, options ...Option) dashboard.Option
Package-Level Functions (total 8)
Hide ensures that the variable will not be displayed.
HideLabel ensures that this variable's label will not be displayed.
IncludeAll adds an option to allow all values to be selected.
Label sets the label of the variable.
Multiple allows several values to be selected.
New creates a new "query" templated variable.
Regex defines a filter allowing to filter the values returned by the request/query.
Type defines the datasource type. Example: "grafana", "stackdriver", "prometheus", ...
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |